﻿using System.Collections.Generic;
using DocumentFormat.OpenXml.Spreadsheet;
using eCommerce.db.DALRespository;
using eCommerce.db.DataRespository;

namespace eCommerce.db.BORespository
{
    public class IeBo
    {
        public static List<IeEntity> Search(int type, int storeId, string keyword, int pageIndex, int pageSize, string startDate, string endDate, ref int totalRecords)
        {
            return IeDal.Search(type, storeId, keyword, pageIndex, pageSize, startDate, endDate, ref totalRecords);
        }

        public static int GetQuantityByIeId(int ieId)
        {
            return IeDal.GetQuantityByIeId(ieId);
        }

        public static int Create(IeEntity o)
        {
            return IeDal.Create(o);
        }

        public static void Delete(int id)
        {
            IeDal.Delete(id);
        }

        public static List<IeEntity> GetDataImportExport(int sizeType, int storeId, string description, Worksheet worksheet, SharedStringTable sharedString, ref string errorMessage)
        {
            return IeDal.GetDataImportExport(sizeType, storeId, description, worksheet, sharedString, ref errorMessage);
        }

        public static List<IeEntity> ExecuteImportExport(int sizeType, int storeId, string description, Worksheet worksheet, SharedStringTable sharedString, ref string errorMessage)
        {
            return IeDal.ExecuteImportExport(sizeType, storeId, description, worksheet, sharedString, ref errorMessage);
        }
    }
}
